import {createRouter,createWebHashHistory} from "vue-router";
import Home from "./components/home.vue"
import Insert from "./components/familyinsert.vue"
import Login from "./components/login.vue"

const router = createRouter({
    history:createWebHashHistory(),
    routes:[
        {
            path:"/home",
            component:Home
        },
        {
            path:"/insert",
            component:Insert
        },
        {
            path:"/",
            component:Login
        }
    ]
});

// 路由拦截

// router.beforeEach(())

export default router;